textiter: fix bug in find_visible_by_log_attrs()
authorSébastien Wilmet <swilmet@gnome.org>
Tue, 15 Jul 2014 17:02:54 +0000 (19:02 +0200)
committerSébastien Wilmet <swilmet@gnome.org>
Thu, 17 Jul 2014 10:56:57 +0000 (12:56 +0200)
commitdc1317a521f956cc1e42f442b43a87a48aa28337
tree1db6c00c6f4cc7a9048b18465015ec61236ba379
parent69d20f53e237806a64d2ffbe0a859b696667a76f
textiter: fix bug in find_visible_by_log_attrs()

find_by_log_attrs() can return true only in this case:
return moved && !gtk_text_iter_is_end (arg_iter);

So if the iter moved (i.e. something has been found), but is the end
iter, find_by_log_attrs() returns false.

Now the same checks are made in find_visible_by_log_attrs(). The public
functions using find_visible_by_log_attrs() say in their documentation
that false is returned for the end iter, hence the check with
gtk_text_iter_is_end().

https://bugzilla.gnome.org/show_bug.cgi?id=618852
gtk/gtktextiter.c
testsuite/gtk/textiter.c